#ifndef SYNCWORKER_H
#define SYNCWORKER_H

#include <QObject>
#include <QNetworkAccessManager>
#include <QSqlDatabase>

class SyncWorker : public QObject {
    Q_OBJECT
public:
    explicit SyncWorker(QObject *parent = nullptr);
    void startSync();

private slots:
    void onReplyFinished(QNetworkReply *reply);

private:
    QNetworkAccessManager *m_nam;
    QSqlDatabase m_db;
};

#endif // SYNCWORKER_H
